//
//  MyAnnoModel.m
//  YaDiuDiu
//
//  Created by 欧洪飞 on 2017/10/20.
//  Copyright © 2017年 jy. All rights reserved.
//

#import "MyAnnoModel.h"

@implementation MyAnnoModel

-(instancetype)initWithAnnotationModelWithDict:(NSDictionary *)dict{
    self =[super init];
    
    if (self) {
        self.dic = dict;
        self.coordinate = CLLocationCoordinate2DMake([[dict objectForKey:@"latitude"] floatValue], [[dict objectForKey:@"longitude"] floatValue]);
        self.name = [dict objectForKey:@"name"];
        self.title = [dict objectForKey:@"suite"];
        
    }
    return self;
}

-(instancetype)initWithArray:(NSMutableArray *)array{
    self = [super init];
    if (self) {
        self.array = array;
    }
    
    return self;
}

@end
